<?php 
/*
 module:		角色管理控制器
 create_time:	2021-07-27 18:11:24
 author:		
 contact:		
*/

namespace app\api\validate;
use think\validate;

class Location extends validate {

	protected $rule = [
		'device_lat'=>['require'],
		'device_long'=>['require'],
		'device_id'=>['require'],
		'location_time'=>['require'],
		'location_type'=>['require'],
		'sign' => ['require']
	];

	protected $message = [
		'device_lat.require'=>'lat坐标不能为空',
		'device_long.require'=>'long坐标不能为空',
		'device_id.require'=>'设备ID不能为空',
		'location_time.require'=>'定位时间不能为空',
		'location_type.require'=>'定位类型不能为空',
		'sign.require'=>'签名不能为空',
	];

	protected $scene  = [
		'up'=>['device_lat','device_long', 'device_id', 'location_time', 'location_type', 'sign']
	];
}

